package com.liang.service.impl;

import java.util.Set;

import org.springframework.beans.factory.annotation.Autowired;

import com.liang.dao.RootDao;
import com.liang.pojo.Root;
import com.liang.service.RootService;

public class RootServiceImpl implements RootService{

	@Autowired
	RootDao rootDao;
	public void setRootDao(RootDao rootDao) {
		this.rootDao=rootDao;
	}
	public Root selectRootByUsername(String username) {
		return rootDao.selectRootByUsername(username);
	}

	public Set<String> selectRoleByUsername(String username) {
		return rootDao.selectRoleByUsername(username);
	}

	public Set<String> selectPremissionByUsername(String username) {
		return rootDao.selectPremissionByUsername(username);
	}

}
